/**
 * Create by yxk at 2020/12/29 0028
 */
import request from 'UTIL/request'

/**
 * 获取审批流程条件
 */
export function PreviewFiledName(params) {
  return request({
    url: 'examines/previewFiledName',
    method: 'POST',
    data: params
  })
}

/**
 * 预览审批流程
 */
export function PreviewExamineFlow(params) {
  return request({
    url: 'examines/previewExamineFlow',
    method: 'POST',
    data: params,
		hideLoading: true
  })
}

/**
 * 预览审批流程
 */
export function QueryPartList(params) {
  return request({
    url: 'examines/queryPartList',
    method: 'POST',
    data: params,
		hideLoading: true
  })
}

/**
 * 获取审批详情
 */
export function QueryExamineRecordList(params) {
  return request({
    url: 'examineRecord/queryExamineRecordList',
    method: 'POST',
    data: params,
		requestType: 'form'
  })
}

/**
 * 进行审批
 */
export function AuditExamine(params) {
  return request({
    url: 'examineRecord/auditExamine',
    method: 'POST',
    data: params
  })
}

/**
 * 获取审批历史记录
 */
export function QueryExamineRecordLog(params) {
  return request({
    url: 'examineRecord/queryExamineRecordLog',
    method: 'POST',
    data: params,
		requestType: 'form'
  })
}